package eerbaar.internal.elements.extension;

import eerbaar.elements.extension.IEnemyElementKiller;
import eerbaar.extension.IExtensible;

public class EnemyElementKillerImpl implements IEnemyElementKiller {

    private final IExtensible parent;

    public EnemyElementKillerImpl(IExtensible parent) {
        this.parent = parent;
    }

    @Override
    public IExtensible copy() {
        return new EnemyElementKillerImpl(this.parent);
    }

    @Override
    public <T extends IExtensible> T getExtension(Class<T> type) {
        return this.parent.getExtension(type);
    }

}
